package e

const (
	Success       = 200
	Error         = 500
	InvalidParams = 400
	ErrorJsonType = 401

	//RequestOkButNeedPopupPrompt 请求成功，但是需要弹出提示
	RequestOkButNeedPopupPrompt = 20001
	ErrorFailEncrypt            = 20002

	ErrorTokenIsNil   = 20003
	ErrorTokenFormat  = 20004
	ErrorInvalidToken = 20005
	//验证码
	ErrorGetCaptcha   = 20006
	ErrorCheckCaptcha = 20007

	ErrorGetSmsCode       = 20008
	ErrorRequestSmsCode   = 20009
	ErrorUnmarshalSmsCode = 20010
	ErrorSendSmsCode      = 20011
	SuccessSendSmsCode    = 20012

	//邮箱
	ErrorGetEmailToken = 20020
	ErrorEmailScene    = 20021
	ErrorSentEmail     = 20022

	// 如果需要根据 code 代码的返回收集做大数据分析，不要使用上面，而是要一条信息对应一个代码code状态，如下

	//用户模块错误 3*
	ErrorExistUser        = 30001
	ErrorExistUserNotFind = 30002
	ErrorCreateUser       = 30003
	ErrorEncryptUserPwd   = 30004
	ErrorNotCompare       = 30005

	ErrorAuthToken = 30006

	//上传错误 5***
	ErrorUploadFile          = 50001
	ErrorCreateUploadFileDir = 50002
	ErrorFailUploadFile      = 50003
	SuccessUploadFile        = 50004
	ErrorUploadFileOverMax   = 50005
	ErrorUploadFileNotNil    = 50006
)
